<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page pageEncoding="UTF-8" language="java" %>
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>struts2练习</title>
</head>
<body>
<form action="login" method="post">
    用户名：<input type="text" name="name">
    密码：<input type="password" name="mima">
    <input type="submit" value="提交">
</form>
<hr>
<a href="hello">hello</a><br>
<a href="de">de</a><br>
<a href="exec">exec</a><br>
<hr>
hello.jsp源代码<br>
<a href="source?fn=hello">hello</a><br>
<hr>
<h3>struts2 标签使用</h3>
<s:iterator begin="1" end="10" step="4" var="i">
    <%--s:property 累加不超过10     step="1" 每次加的值--%>
    <s:property/><br>
    ${i}<br>
</s:iterator>
<hr>
EL表达式forEach:<br>
<c:forEach begin="1" end="10" step="4" var="i">
    ${i}
</c:forEach>
</body>
</html>
